import service from '../service/require.js'

//  用户登录接口
export function login(params) {
    return service({
        url:'/system/api/system/login2',
        method:'POST',
        data:params
    })
}

//   判断登录用户密码是否需要修改
export function overdueCheck(params) {
    return service({
        url:'/system/api/system/password/overdue/check',
        method:'POST',
        data:params
    })
}
//  
export function menuList(params) {
    return service({
        url:'/system/api/system/menu/user/login',
        method:'POST',
        data:params
    })
}

// loadByKeys
export function dictionaryList(params) {
    return service({
        url:'/system/api/code/master/loadByKeys2',
        method:'POST',
        data:params
    })
}
// 部门列表
export function departmentList(params) {
    return service({
        url:'/system/api/system/department/list',
        method:'POST',
        data:params
    })
}

// 重置
export function password_reset(params) {
    return service({
        url:'/system/api/system/login/user/password/_reset',
        method:'POST',
        data:params
    })
}
// 冻结 
export function userFrozen(params) {
    return service({
        url:'/system/api/system/login/user/frozen',
        method:'POST',
        data:params
    })
}
// 解冻
export function userThaw(params) {
    return service({
        url:'/system/api/system/login/user/thaw',
        method:'POST',
        data:params
    })
}

export function batchSave(params) {
    return service({
        url:'/system/api/system/login/user/role/set',
        method:'POST',
        data:params
    })
}

export function roleList(params) {
    return service({
        url:'/system/api/system/role/list',
        method:'POST',
        data:params
    })
}

export function userRoleList(params) {
    return service({
        url:'/system/api/system/login/user/get',
        method:'POST',
        data:params
    })
}

export function carrierBasicInfoPageList(params) {
    return service({
        url:'/system/api/carrierBasicInfo/pageList',
        method:'POST',
        data:params
    })
}

export function carrierTeamInfoAdd(params) {
    return service({
        url:'/system/api/carrierTeamInfo/add',
        method:'POST',
        data:params
    })
}

export function carrierEmployeePageList(params) {
    return service({
        url:'/system/api/carrierEmployee/pageList',
        method:'POST',
        data:params
    })
}

export function carrierTeamMoreGetByParam(params) {
    return service({
        url:'/system/api/carrierTeamMore/getByParam',
        method:'POST',
        data:params
    })
}

export function companyCompanyBaseGetAllByCreditCode(params) {
    return service({
        url:'/system/api/companyBase/getAllByCreditCode',
        method:'POST',
        data:params
    })
}

export function menuParentList(params) {
    return service({
        url:'/system/api/system/menu/parent/list',
        method:'POST',
        data:params
    })
}

export function menuAllList(params) {
    return service({
        url:'/system/api/system/menu/list',
        method:'POST',
        data:params
    })
}
export function resourceSave(params) {
    return service({
        url:'/system/api/system/role/resource/save',
        method:'POST',
        data:params
    })
}


export function roleResource(params) {
    return service({
        url:'/system/api/system/role/resource/get',
        method:'POST',
        data:params
    })
}

export function password_modify(params) {
    return service({
        url:'/system/api/system/login/user/password/_modify',
        method:'POST',
        data:params
    })
}

export function carrierBasicInfoGet(params) {
    return service({
        url:'/system/api/carrierBasicInfo/get',
        method:'POST',
        data:params
    })
}


export function carrierActivityAdd(params) {
    return service({
        url:'/system/api/carrierActivity/add',
        method:'POST',
        data:params
    })
}

export function carrierComInfoAdd(params) {
    return service({
        url:'/system/api/carrierComInfo/add',
        method:'POST',
        data:params
    })
}

export function carrierComMoreGetByParam(params) {
    return service({
        url:'/system/api/carrierComMore/getByParam',
        method:'POST',
        data:params
    })
}





